<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp"%>
<%@include file="/common/javascript.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>选择用户</title>
    <script type="text/javascript">
    var gridManager;
    
    $(function () {
    	gridManager=$("#maingrid4").ligerGrid({
            columns: [
      				{ display: '代码', name: 'roleId', align: 'left', width:'15%', minWidth: 60 },
    				{ display: '中文姓名', name: 'userNameC', width:'25%',minWidth: 120 },
    				{ display: '英文姓名', name: 'userNameE',width:'40%', minWidth: 140 }
            ],  pageSize:10,
            dataAction: 'server', url: '${ctx}/user/list', sortName: 'userId',
            width: '100%', height: '80%', numPerPage:20,rownumbers:true
        }); 
        $("#pageloading").hide();
    });
    
    function selectOK(){
    	var row=gridManager.getSelectedRow();
    	window.parent.callBackOK(row);
    }
    
    function selectCancel(){
    	window.parent.callBackCancel();
    }
    </script>
</head>
<body style="padding:6px; overflow:hidden;">
  <div class="l-clear"></div>
    <div id="maingrid4" style="margin-top:0px;"></div>
	<div class="l-dialog-buttons" style="">
		<div class="l-dialog-buttons-inner">
			<div class="l-dialog-btn">
				<div class="l-dialog-btn-l"></div>
				<div class="l-dialog-btn-r"></div>
				<div class="l-dialog-btn-inner" onclick="selectCancel()">取消</div>
			</div>
			<div class="l-dialog-btn">
				<div class="l-dialog-btn-l"></div>
				<div class="l-dialog-btn-r"></div>
				<div class="l-dialog-btn-inner" onclick="selectOK()">提交</div>
			</div>
			<div class="l-clear"></div>
		</div>
	</div>
  <div style="display:none;">
</body>
</html>
